RECAP ยท CACHE-ASIDE
Three moves, in this order
1
2
3
Check the cache
A hit answers in about
a millisecond.
Miss? Ask the database
Slower, but always
correct.
Store the answer
The next reader gets
a hit.
Set an expiry so stale answers leave on their own.